package com.chushouya.manager.constants;

import com.general.framework.core.enums.IEnum;

import java.util.Objects;

public enum DeductSignEnum  implements IEnum<String> {

    unSign("UNSIGN", "未签署"),
    signed("SIGN", "已签署")
    ;

    private String value;

    private String desc;


    DeductSignEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static String getDesc(String value) {
        for (DeductSignEnum thisEnum : DeductSignEnum.values()) {
            if (Objects.equals(thisEnum.value, value)) {
                return thisEnum.desc;
            }
        }
        return "";
    }

    @Override
    public String value() {
        return this.value;
    }

    @Override
    public String named() {
        return this.desc;
    }
}
